using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using SOEI.Solution.DomainEntities.RoomSourceVerifiy;

namespace SOEI.Solution.EntityFrameworkCore.EntityMapper
{
    public class RoomVerifyPropertyMapper : AbpBaseMapper, IEntityTypeConfiguration<RoomVerifyProperty>
    {
        public void Configure(EntityTypeBuilder<RoomVerifyProperty> builder)
        {
            builder.ToTable(GetTableName("RoomVerifyPropertys"));
            builder
                .HasIndex(x => x.RoomVerifyId)
                .HasName(GetIndexName("ROOMVERIFYPROPERTYS_RVID"));           // RVId: RoomVerifyId
        }
    }
}